#We define the flags that will be passed as arguments to the compiler through
#the ADD_DEFINITIONS directive. It is optional to do it but the default flags
#passed to the compiler are not sufficiently severe to check and report the
#warnings and bugs.
ADD_DEFINITIONS(-g -Wall)

SET ( SRC_LIST  main.cpp  request_handler.cpp  connection.cpp  server.cpp )

SET (LOCAL_LIB_PATH ../../lib/)
MESSAGE (STATUS "cmake Begin to work")

ADD_EXECUTABLE(server ${SRC_LIST})

#Designate the library linked to.
TARGET_LINK_LIBRARIES(server -L/usr/local/lib boost_thread-mt boost_system-mt
protobuf -L${LOCAL_LIB_PATH} favorite log log4cpp)
